package matching;


import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;

public class MatchingCreator {

	public static void main(String[] args) {
		String xmlFile = "file:///xerces-2_10_0/data/personal.xml"; 
		try {
		    DocumentBuilderFactory factory = 
		    DocumentBuilderFactory.newInstance();
		    DocumentBuilder builder = factory.newDocumentBuilder();
		    Document document = builder.parse(xmlFile);
		}
		catch (FactoryConfigurationError ex1) {
		    // unable to get a document builder factory
		} 
		catch (ParserConfigurationException ex2) {
		    // parser was unable to be configured
		}
		catch (SAXException ex3) {
		    // parsing error
		} 
		catch (IOException ex4) {
		    // i/o error
		}
	}
	
}
